home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Moscow ML 1.42 / src / Makefile < prev    next >
Encoding:
Makefile  |  1997-08-18  |  1.8 KB  |  81 lines  |  [TEXT/R*ch]

  1. # Unix Makefile for Moscow ML
  2.  
  3. # To build the Moscow ML system on a new machine for the first time, 
  4. #    (1) edit MOSMLHOME etc. in file Makefile.inc
  5. #    (2) execute `make world'
  6.  
  7. # To install it
  8.  
  9. #    (1) execute `make install'
  10. #    (2) edit MOSMLHOME in file mosml/tools/Makefile.stub
  11.  
  12. # ------------------------------------------------------------
  13.  
  14. include Makefile.inc
  15.  
  16. # Build the entire system for the first time
  17.  
  18. world:
  19.     cd config; sh autoconf gcc    
  20.     cd runtime; make all
  21.     cp runtime/camlrunm .
  22.     cd mosmlyac; make all
  23.     cd mosmllib; make all
  24.     cd compiler; make all
  25.     cd toolssrc; make all
  26.     cd lex; make all
  27.     cd launch; make all
  28.  
  29. uptodate:
  30.     cd runtime; make all
  31.     cp runtime/camlrunm .
  32.     cd mosmlyac; make all
  33.     cd mosmllib; make all
  34.     cd compiler; make all
  35.     cd toolssrc; make all
  36.     cd lex; make all
  37.     cd launch; make all
  38.  
  39. # Recompile all Mosml code from scratch
  40. again:
  41.     cd mosmllib; make clean all
  42.     cd compiler; make clean all
  43.     cd toolssrc; make clean all
  44.     cd lex; make clean all
  45.  
  46. # Install the Mosml system
  47. install:
  48.     test -d $(BINDIR) || mkdir -p $(BINDIR)
  49.     test -d $(LIBDIR) || mkdir -p $(LIBDIR)
  50.     test -d $(TOOLDIR) || mkdir -p $(TOOLDIR)
  51.     cd runtime; make install BINDIR=$(BINDIR)
  52.     cd launch; make all install
  53.     cd mosmlyac; make install BINDIR=$(BINDIR)
  54.     cd mosmllib; make install
  55.     cd compiler; make install
  56.     cd toolssrc; make install
  57.     cd lex; make install
  58.  
  59. # Remove all generated files
  60. clean:
  61.     cd config; make clean
  62.     cd runtime; make clean
  63.     cd launch; make clean
  64.     cd mosmlyac; make clean
  65.     cd mosmllib; make clean
  66.     cd compiler; make clean
  67.     cd toolssrc; make clean
  68.     cd lex; make clean
  69.     cd test; make clean
  70.     cd mosmllib/test; make clean
  71.     cd ../examples; make clean    
  72.     rm -f camlrunm
  73.  
  74. # Rebuild the dependencies in all Makefiles.
  75. # You can't do this unless you have a compiled runtime system.
  76. depend:
  77.     cd mosmllib; make depend
  78.     cd mosmlyac; make all
  79.     cd compiler; make depend
  80.     cd lex; make depend
  81.